﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using TenderSampleApp.Models;
using TenderSampleApp.Areas.DAK.Models;

namespace TenderSampleApp.Areas.DAK.Controllers
{
    public class DAKHomeController : Controller
    {
        //
        // GET: /DAK/DAKHome/

        [Authorize(Roles = "DAK")]
        public ActionResult Index()
        {
            DAL dl = new DAL();
            VATListModel  lvm= dl.GetVatsOfCurrentAuction();
         
            DAKDAL dakdl = new DAKDAL();
            double chisl = dakdl.GetFactCost(1);
            return View(lvm);
        }

        [Authorize(Roles = "DAK")]
        public ActionResult AuctionCalculate()
        {
            //lvm=NULL ?????? :(
 
                return View();
        }


    }
}
